<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>LoveTemperature</title>
		<meta name="author" content="ningzero"/>

		<!-- CSS -->
		<link rel="stylesheet" href="../css/editOrder.css">
		<!-- end CSS-->

	</head>

	<body>

		<div id="container">
			<header class="header">
				<div id="login_cart_bar">
					<div id="loginRegisterDiv">
						欢迎惠顾，<s:property value="#session.user.name" />
						<a class="pinkAnchor" href="http://localhost:8080/lovetemperature/sale/logout">退出登录</a>
					</div>
					<div id="cartAccountDiv">
						<a class="pinkAnchor" onclick="javascript:window.location='http://localhost:8080/lovetemperature/sale/showStepOne'">购物车</a>
						<a class="pinkAnchor" onclick="javascript:window.location='http://localhost:8080/lovetemperature/sale/showMember'">我的账户</a>
					</div>
				</div>
				<div id="logo_bar">
					<img src="../img/logo.gif"/>
					<img id="logo_text" src="../img/logo2.png"/>
				</div>
				<div id="nav_bar">
					<ul>
						<li class="nav_padding_left"></li>
						<li class='<s:if test="%{#showCategory=='首页'}">shouye_cur</s:if><s:else>shouye</s:else>'>
							<a href="http://localhost:8080/lovetemperature/index">首页</a>
						</li>
						<li class='<s:if test="%{#showCategory=='蛋糕'}">dangao_cur</s:if><s:else>dangao</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=蛋糕">蛋糕</a>
						</li>
						<li class='<s:if test="%{#showCategory=='面包'}">mianbao_cur</s:if><s:else>mianbao</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=面包">面包</a>
						</li>
						<li class='<s:if test="%{#showCategory=='干点'}">gandian_cur</s:if><s:else>gandian</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=干点">干点</a>
						</li>
						<li class='<s:if test="%{#showCategory=='拌手礼'}">banshouli_cur</s:if><s:else>banshouli</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=拌手礼">伴手礼</a>
						</li>
						<li class='<s:if test="%{#showCategory=='饮品'}">kaquan_cur</s:if><s:else>kaquan</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=饮品">饮品</a>
						</li>
						<li class='<s:if test="%{#showCategory=='其他'}">qita_cur</s:if><s:else>qita</s:else>'>
							<a href="http://localhost:8080/lovetemperature/sale/index?category=其他">其他</a>
						</li>
					</ul>
				</div>
			</header>
			<div id="mainContent" class="mainContent">
				<form action="http://localhost:8080/lovetemperature/sale/editMember" id="form">
				<div id="extraInfoDiv">
					<h4>会员信息</h4>
					<p>　　姓名：<input type="text" value='<s:property value="#originMember.name" />' name="originMember.name"/></p>
					<p>　　性别：<s:select list="#candidateSexes" name="originMember.sex" /></p>
					<p>　　年龄：<input type="text" value='<s:property value="#originMember.age" />' name="originMember.age"/></p>
					<p>电子邮箱：<input type="text" value='<s:property value="#originMember.email" />' name="originMember.email"/></p>
					<p>联系电话：<input type="text" value='<s:property value="#originMember.phone" />' name="originMember.phone"/></p>
					<p>联系地址：<input type="text" value='<s:property value="#originMember.address" />' name="originMember.address"/></p>
					<p>会员状态：<span><s:property value="#originMember.state" /></span></p>
					<h4>余额信息</h4>
					<p>上次充值时间：<span><s:property value="#originMember.lastPay" /></span></p>
					<p>会员有效期至：<span><s:property value="#originMember.untilDate" /></span></p>
					<p>　　账户余额：￥<span><s:property value="#originMember.balance" /></span></p>
				</div>
				</form>
				<div id="payDiv">
					<div class="normalBtn" onclick="showOrders()">我的订单</div>
					<div class="normalBtn" onclick="recharge()">充值</div>
					<div class="normalBtn" onclick="javascript:history.back(-1);">返回</div>
					<div class="normalBtn" onclick="submit()">保存修改</div>
				</div>
			</div>
		</div>
		<!--! end of #container -->
		
		<footer id="footer">
			<img src="../img/tmp/tmpfooter.png" />
		</footer>

		<!-- scripts -->
		<script type="text/javascript" src="../js/libs/jquery-1.9.1.min.js" ></script>
		<script type="text/javascript" src="../js/util.js" ></script>
		<script type="text/javascript" src="../js/index.js" ></script>
		<script>
			function submit(){
				$('#form').submit();
			}
			function recharge(){
				window.location="http://localhost:8080/lovetemperature/sale/recharge";
			}
			function showOrders(){
				window.location="http://localhost:8080/lovetemperature/sale/myorder";
			}
		</script>
		<!-- end scripts-->
	</body>
</html>
